﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using Adaptive;
using Adaptive.Foundation;
using Adaptive.Foundation.IO;
using Adaptive.Foundation.Network.Cnr;
using Adaptive.Foundation.Network.Pop3;
using Adaptive.Win32;
using Adaptive.Win32.Debugging;
using Adaptive.Win32.Gdi;
using Adaptive.Win32.Network;
using Adaptive.Network.Dns;
using Adaptive.Network.Sockets;
using System.Net;
using Adaptive.Foundation.IO;
using Adaptive.Foundation.Security;

using Microsoft.Win32.SafeHandles;

namespace TestApp
{
    class Program
    {
        static void Main(string[] args)
        {
            AiProtectedFile protFile = null;
            byte[] data = new byte[26] {65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90};

            protFile = new AiProtectedFile(@"C:\Temp\TestInfo.txt");
            protFile.DataContent = data;
            protFile.Save();
            protFile.Dispose();

            protFile = new AiProtectedFile(@"C:\Temp\TestInfo.txt");
            protFile.Load();
            protFile.Dispose();
            protFile = null;

        }
    }
}